package com.project.service.impl;

import com.project.bean.UserBean;
import com.project.dao.IUserDao;
import com.project.dao.impl.UserDaoImpl;
import com.project.service.IUserService;

import java.util.List;

public class UserServiceImpl implements IUserService {
    private IUserDao userDao = new UserDaoImpl();
    @Override
    public UserBean login(String userName, String pwd) {
        return userDao.login(userName,pwd);
    }

    @Override
    public void add(UserBean user) {
        userDao.add(user);
    }

    @Override
    public List<UserBean> findAll() {
        return userDao.findAll();
    }
}
